package com.situ.crm.service;

import com.situ.crm.pojo.entity.Role;
import com.situ.crm.pojo.vo.LayUISelectMVO;
import com.situ.crm.util.JSONResult;
import com.situ.crm.util.LayUITableResult;

import java.util.List;
import java.util.Map;

public interface IRoleService {

	LayUITableResult list(Integer page, Integer limit, Role role);

	void deleteById(Integer id);

	void deleteAll(String ids);

	void insert(Role role, String permissions);

	Role selectByPrimaryKey(Integer roleId);

	Map<String, Object> selectRoleAndPermisssions(Integer roleId);

	void update(Role role, Integer[] permissions);

	List<LayUISelectMVO> selectAllRoles();

}
